import { FC } from 'react';
import { connect, ConnectProps, Loading } from 'umi';
import { HomeModelState } from './model';

interface PageProps extends ConnectProps {
  home: HomeModelState;
  loading: boolean;
}

const IndexPage: FC<PageProps> = function ({ home, loading }) {
  return <div>主页测试</div>;
};

export default connect(
  ({ home, loading }: { home: HomeModelState; loading: Loading }) => ({
    home,
    loading: loading.models.home,
  }),
)(IndexPage);
